<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Libusb++: LibUSB::Configuration Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Libusb++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A C++ libusb wrapper</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_lib_u_s_b_1_1_configuration.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_lib_u_s_b_1_1_configuration-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">LibUSB::Configuration Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a85966788f5f320aba04c98eae92f8512"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85966788f5f320aba04c98eae92f8512"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Configuration</b> (std::shared_ptr&lt; ConfigurationImpl &gt; pInit)</td></tr>
<tr class="memitem:ae1dd391b9d615ff1fe80264585527dda"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1dd391b9d615ff1fe80264585527dda"></a>
std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#ae1dd391b9d615ff1fe80264585527dda">DescriptorString</a> () const </td></tr>
<tr class="memdesc:ae1dd391b9d615ff1fe80264585527dda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the string descriptor describing this configuration. <br/></td></tr>
<tr class="memitem:af50cb780a19692834d7c1c107602c24c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af50cb780a19692834d7c1c107602c24c"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#af50cb780a19692834d7c1c107602c24c">Value</a> () const </td></tr>
<tr class="memdesc:af50cb780a19692834d7c1c107602c24c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the identifier value of this configuration. <br/></td></tr>
<tr class="memitem:ae9dbfd1722338ebbccf8a772b5b8bed2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9dbfd1722338ebbccf8a772b5b8bed2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#ae9dbfd1722338ebbccf8a772b5b8bed2">MaxPower</a> () const </td></tr>
<tr class="memdesc:ae9dbfd1722338ebbccf8a772b5b8bed2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximum amount of power this device will consume while fully operational. (mA) <br/></td></tr>
<tr class="memitem:a685c0454a10ebb8298f6fad0da7e5d02"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a685c0454a10ebb8298f6fad0da7e5d02"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#a685c0454a10ebb8298f6fad0da7e5d02">SetAsActive</a> ()</td></tr>
<tr class="memdesc:a685c0454a10ebb8298f6fad0da7e5d02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets this configuration as the active configuration. <br/></td></tr>
<tr class="memitem:a33184cf73b15b78ad7043964e121c3a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33184cf73b15b78ad7043964e121c3a8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#a33184cf73b15b78ad7043964e121c3a8">isSelfPowered</a> () const </td></tr>
<tr class="memdesc:a33184cf73b15b78ad7043964e121c3a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns TRUE if the device is self powered. <br/></td></tr>
<tr class="memitem:afa9e4a6df05bf3a591d587a297849532"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa9e4a6df05bf3a591d587a297849532"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#afa9e4a6df05bf3a591d587a297849532">supportsRemoteWakeup</a> () const </td></tr>
<tr class="memdesc:afa9e4a6df05bf3a591d587a297849532"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns TRUE if the device supports remote wakeup. <br/></td></tr>
<tr class="memitem:a4c6821c0a615aa153310fb5b7fcf82ca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c6821c0a615aa153310fb5b7fcf82ca"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#a4c6821c0a615aa153310fb5b7fcf82ca">hasExtraDescriptors</a> () const </td></tr>
<tr class="memdesc:a4c6821c0a615aa153310fb5b7fcf82ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns TRUE if there are extra descriptors present. <br/></td></tr>
<tr class="memitem:ad05ae5f0d18011aec213b9f86be94f77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad05ae5f0d18011aec213b9f86be94f77"></a>
const unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#ad05ae5f0d18011aec213b9f86be94f77">getExtraDescriptors</a> () const </td></tr>
<tr class="memdesc:ad05ae5f0d18011aec213b9f86be94f77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer the the extra descriptors. <br/></td></tr>
<tr class="memitem:a34e0423ff0c3051ee83999d3fd489c5b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a34e0423ff0c3051ee83999d3fd489c5b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#a34e0423ff0c3051ee83999d3fd489c5b">getExtraDescriptorSize</a> () const </td></tr>
<tr class="memdesc:a34e0423ff0c3051ee83999d3fd489c5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the extra descriptors, in bytes. <br/></td></tr>
<tr class="memitem:a833252b95f281c4938693a31f6a71ec6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a833252b95f281c4938693a31f6a71ec6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#a833252b95f281c4938693a31f6a71ec6">NumInterfaces</a> () const </td></tr>
<tr class="memdesc:a833252b95f281c4938693a31f6a71ec6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of interfaces supported by this configuration. <br/></td></tr>
<tr class="memitem:afd96a0eaf1281c1017ed0c3a781cee10"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd96a0eaf1281c1017ed0c3a781cee10"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_interface.html">Interface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#afd96a0eaf1281c1017ed0c3a781cee10">getInterfaceByIndex</a> (int index) const </td></tr>
<tr class="memdesc:afd96a0eaf1281c1017ed0c3a781cee10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the specified interface by index. <br/></td></tr>
<tr class="memitem:af48ff43ff40deb9277f1b20bf232d2fa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af48ff43ff40deb9277f1b20bf232d2fa"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_interface.html">Interface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_configuration.html#af48ff43ff40deb9277f1b20bf232d2fa">getInterface</a> (int InterfaceNumber) const </td></tr>
<tr class="memdesc:af48ff43ff40deb9277f1b20bf232d2fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the specified interface by <a class="el" href="class_lib_u_s_b_1_1_interface.html" title="USB Interface class.">Interface</a> number. <br/></td></tr>
</table>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>headers/<a class="el" href="_configuration_8h_source.html">Configuration.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>LibUSB</b></li><li class="navelem"><a class="el" href="class_lib_u_s_b_1_1_configuration.html">Configuration</a></li>
    <li class="footer">Generated on Sat Sep 8 2012 17:02:56 for Libusb++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
